package com.gzhryc.common.logging.models;

import java.io.Serializable;
import java.util.Date;

/**
 * 日志信息
 * @author zhanghao
 * @version 2020-08-09
 */
public class LogInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String level;
	private String tag;
	private String msg;
	private String errorInfo;
	private Date createDate;
	
	//扩展参数
	private String projectId;		//项目ID
	private String pargramType;		//程序类型

	public LogInfo(String level, String tag, String msg) {
		this.level = level;
		this.tag = tag;
		this.msg = msg;
		this.createDate = new Date();
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getErrorInfo() {
		return errorInfo;
	}

	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getPargramType() {
		return pargramType;
	}

	public void setPargramType(String pargramType) {
		this.pargramType = pargramType;
	}
}
